From 813cc210b9a017f47ba6487ab4849786c7c849a5 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 22 Nov 2008 17:43:53 +0000 Subject: [PATCH] Globalsat: flush receive on startup to make BT-335 more reliable. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3608 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/dg-100.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpsbabel/dg-100.c b/gpsbabel/dg-100.c index 9657076b2..78e50be58 100644 --- a/gpsbabel/dg-100.c +++ b/gpsbabel/dg-100.c @@ -640,6 +640,9 @@ dg100_rd_init(const char *fname) if (gbser_set_speed(serial_handle, 115200) != gbser_OK) { fatal(MYNAME ": Can't configure port '%s'\n", fname); } + // Toss anything that came in before our speed was set, particularly + // for the bluetooth BT-335 product. + gbser_flush(serial_handle); } static void -- 2.30.2